package cn.bjit.mapper;

import cn.bjit.model.CouponDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yx
 * @since 2022-06-14
 */
public interface CouponMapper extends BaseMapper<CouponDO> {
    /**
     * 减库存
     * @param couponId
     * @return
     */
    int reduceStock(long couponId);
}
